<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.tjsinfo.tjsoa.common.DealString"%>
<%@page import="com.tjsinfo.tjsoa.vote.vo.TVoteConformation"%>
<%@page import="com.tjsinfo.tjsoa.vote.vo.TVoteColumn;"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	DealString ds = new DealString();
	List<TVoteColumn> columnLists = (List) request.getAttribute("columnLists");
	TVoteConformation conformation = (TVoteConformation) request.getAttribute("conformation");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>粮油集团办公自动化协作平台</title>
		<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />
		<style>
			.draft_listn {
				padding: 0px 8px 0 0;
			}
			.draft_listn ul {
				padding-top: 5px;
			}
			.draft_listn li {
				border-bottom: 1px #A3A3A3 dashed;
				background: url(images/icon_14.gif) no-repeat 3px 6px;
				height: 22px;
				padding: 4px 0 0 20px;
			}
			.draft_listn li a {
				color: #0E3451;
			}
		</style>
		<script type="text/javascript">
			function selectType(){
				var a=document.getElementsByName("assessType");   
			    var roles=',';//当前选中权限
			    for(var i=0; i<a.length; i++)  { 
			    	if(a[i].checked)roles=roles+a[i].value+",";
			    }
			    
			    if(roles==","){alert('请选择您要查询的内容!');return false;}
				window.open("<%=basePath%>tjsinfo/tjsoa/vote/voteHistogram.do?headId=<%=conformation.getHeadId()%>&values="+roles+"&type=common&conformationId=<%=conformation.getId()%>&parentId=<%=conformation.getParentId()%>");
			}
	    </script>
	</head>
	<body>
		<div id="rightindex" style="height:97%">
			<div id="tab" style="width:100%">
				<!--导航开始处-->
				<div id="indextit">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="30" style="padding-bottom: 4px;">
								<img src="<%=basePath%>images/1234.gif" />
							</td>
							<td valign="middle"><%=conformation.getName()%></td>
						</tr>
					</table>
				</div>
				<!--这里开始是显示、隐藏的内容-->
				<div id="index_main">
					<div style="overflow-y: scroll; height: 560px;">
						<div class="draft_listn">
							<ul>
								<%
									for (int i = 0; i < columnLists.size(); i++) {
										if (i % 7 == 0) out.print("</ul><ul>");
								%>
								<input type="checkbox" name="assessType" id="assessType" value="<%=columnLists.get(i).getId()%>" /><%=columnLists.get(i).getName()%><br />
								<%
									}
								%>
								<input type="checkbox" name="assessType" id="assessType" value="0" />弃权<br />
							</ul>
							&nbsp;&nbsp;&nbsp;&nbsp;
							<a style="cursor: hand" onclick="selectType()"><font color="blue">提交</font></a>&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="<%=basePath%>tjsinfo/tjsoa/vote/voteConformationList.do?headId=<%=conformation.getHeadId()%>&target=all"><font color="blue">返回</font></a>
						</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
<!--  		<jsp:include page="../include_right.jsp"></jsp:include>-->
		</div>
	</body>
</html>

